﻿// 开发者:micropu
// 公司:佛山远钧智慧科技有限公司

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.NET.Application.Entity;

/// <summary>
/// 采集照片
/// </summary>
[SugarTable("zj_CaiJiPhotos", TableDescription = "采集照片")]
public class CaiJiPhotos : EntityTenantBaseData
{
    /// <summary>
    /// 人员编号
    /// </summary>
    [SugarColumn(ColumnDescription = "人员编号")]
    public long EmployeeId { get; set; }

    /// <summary>
    /// 所属人员
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    [Navigate(NavigateType.OneToOne, nameof(EmployeeId))]
    public Employee Employee { get; set; }

    /// <summary>
    /// 衣服组
    /// </summary>
    [SugarColumn(ColumnDescription = "衣服组", DefaultValue = "0")]
    public int ClothesGroup { get; set; }

    /// <summary>
    /// 通行方向，1进，2出
    /// </summary>
    [SugarColumn(ColumnDescription = "通行方向，1进，2出", DefaultValue = "1")]
    public DirectionType Direction { get; set; }

    /// <summary>
    /// 采集照片
    /// </summary>
    [SugarColumn(ColumnDescription = "采集照片", IsJson = true, ColumnDataType = StaticConfig.CodeFirst_BigString, DefaultValue = "", IsNullable = true)]
    public List<string> Photos { get; set; }
}
